﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;

namespace FlanProjectData.Sprites
{
    public class Animation : Sprite
    {
        public float FramePerSecond { get; set; }
        public bool IsLooping { get; set; }
        public List<Rectangle> FrameList { get; set; }

        // Weapon bounding rectangles
        [ContentSerializer(Optional = true)]
        public List<Rectangle> WeaponRectangles { get; set; }

        public void LoadContent(ContentManager contentManager)
        {
            SpriteTexture = contentManager.Load<Texture2D>(SpriteTextureAsset);
        }
    }
}
